package com.demonzym.framework.net;

import java.util.LinkedList;
import java.util.List;

import org.apache.http.NameValuePair;

public class HttpPostTask extends HttpTask {
	
	public List<NameValuePair> mNameValuePairList;

	public HttpPostTask(String host, String url, HttpTaskCallBack httpcallback) {
		super(host, url, httpcallback);
		mNameValuePairList = new LinkedList<NameValuePair>();
	}

	public void addNameValuePair(final String key, final String value){
		NameValuePair nvp = new NameValuePair() {
			
			@Override
			public String getValue() {
				// TODO Auto-generated method stub
				return value;
			}
			
			@Override
			public String getName() {
				// TODO Auto-generated method stub
				return key;
			}
		};
		mNameValuePairList.add(nvp);
	}
}
